<?php
require __DIR__.'/public/index.php';

use addons\yunfood\model\Promotion;

try {
    $promotion = new Promotion();
    
    echo "<h2>条件处理器验证</h2>";
    echo "GoodsAll类存在: " . (class_exists('addons\yunfood\library\promotion\condition\GoodsAll') ? '是' : '否');
    
    echo "<h2>处理器配置</h2>";
    echo "<pre>";
    print_r($promotion->getConditionHandlers());
    echo "</pre>";
    
    echo "<h2>测试完成</h2>";
} catch (Exception $e) {
    echo "<h2>错误信息</h2>";
    echo "<pre>";
    print_r($e);
    echo "</pre>";
}